import request from '@/utils/request'

export function getGrades(sch_id) {
  return request({
    url: `grades/${sch_id}`,
    method: 'get'
  })
}

export function addGrade(data) {
  return request({
    url: 'grade',
    method: 'post',
    data
  })
}

export function updateGrade(data) {
  return request({
    url: 'grade/',
    method: 'put',
    data
  })
}

export function deleteGrade(id) {
  return request({
    url: `grade/${id}`,
    method: 'delete'
  })
}
